# 菜品
class Blog:
    id = ""
    # 用户属性
    title = ""          # 姓名
    created_time = ""
    theme = ""
    desc = ""
    authorId = ""
    imgUrl=""



    # 静态方法，从字典解码用户信息
    @staticmethod
    def decode(blog_dict):
        blog = Blog()
        blog.title = blog_dict['title']
        blog.theme = blog_dict['theme']
        blog.desc = blog_dict['desc']
        blog.authorId = blog_dict['authorId']
        blog.imgUrl = blog_dict['imgUrl']
        return blog




